package top.szhome.develop.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import top.szhome.framework.starter.db.support.BaseEntity;

/**
 * 表表关系实体对象
 *
 * @author 玉诚开发工具
 * @date 2023/09/11
 */
@Data
@TableName("t_table_relation")
public class TableRelation  extends BaseEntity {
  
    /**
     * 序列号
     */
    private static final long serialVersionUID = 1L;

    /**
     * 源表
     */  
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sourceTable;

    /**
     * 源列
     */  
    @JsonSerialize(using = ToStringSerializer.class)
    private Long sourceColumn;

    /**
     * 源表
     */  
    @JsonSerialize(using = ToStringSerializer.class)
    private Long targetTable;

    /**
     * 源表
     */  
    @JsonSerialize(using = ToStringSerializer.class)
    private Long targetColumn;

    /**
     * 关系
     */  
    private String relationType;

}